'''
字典推导式： dict = {键表达式:值表达式  for循环}
'''
import random

random_dict = {i:random.randint(1,100) for i in range(1,5)}
print(random_dict)

'example create a dict'
name_list = ['贾宝玉','林冲','猪八戒','赵子龙']
sign_list = ['红楼梦','水浒传','西游记','三国演义']

name_sign_dict = {i:j for i,j in zip(name_list,sign_list) }
print(name_sign_dict)